package LearnReflection;

class Chinese extends People implements Fightable{
	
	public Chinese(String name,int age){
		super(name,age);
	}
	
	public Chinese(){
	}
	
	@Override
	public void fight() {
		System.out.println("实现了接口中的fight方法");
	}
	private void pingpang(){
		System.out.println("调用了pingpang方法");
	}
	@Override
	public void voice(){
		System.out.println("这是个Chinese");
	}
	@Override
	public String getName(){
		return name;
	}
	@Override
	public void setName(String name){
		this.name=name;
	}
}